package com.zc.web.domain;

import java.time.LocalDate;
import java.util.Set;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zc.common.annotation.Excel;
import com.zc.common.core.domain.BaseEntity;

/**
 * 重要人生节点事件对象 important_life_event
 * 
 * @author zc
 * @date 2025-10-03
 */
public class ImportantLifeEvent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 事件名称 */
    @Excel(name = "事件名称")
    private String eventName;

    /** 事件日期（年月日） */
    @Excel(name = "事件日期", readConverterExp = "（年月日 YYYY-MM-DD）")
    private LocalDate eventDate;

    /** 事件类型 */
    @Excel(name = "事件类型")
    private String eventType;

    /** 事件详细描述 */
    @Excel(name = "事件详细描述")
    private String eventDescription;

    /** 是否启用：0=禁用，1=启用 */
    @Excel(name = "是否启用：0=禁用，1=启用")
    private Integer isEnabled;

    /** 首页是否显示：0=不显示，1=显示 */
    @Excel(name = "首页是否显示：0=不显示，1=显示")
    private Integer showOnHomepage;

    /** 距离当前日期还有几天（建议由程序或视图计算） */
    @Excel(name = "距离当前日期还有几天")
    private Integer daysUntil;

    String name;
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Excel(name = "用户ID")
    private Long userId;

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setEventName(String eventName) 
    {
        this.eventName = eventName;
    }

    public String getEventName() 
    {
        return eventName;
    }

    public void setEventDate(LocalDate eventDate)
    {
        this.eventDate = eventDate;
    }

    public LocalDate getEventDate()
    {
        return eventDate;
    }

    public void setEventType(String eventType) 
    {
        this.eventType = eventType;
    }

    public String getEventType() 
    {
        return eventType;
    }

    public void setEventDescription(String eventDescription) 
    {
        this.eventDescription = eventDescription;
    }

    public String getEventDescription() 
    {
        return eventDescription;
    }

    public void setIsEnabled(Integer isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public Integer getIsEnabled() 
    {
        return isEnabled;
    }

    public void setShowOnHomepage(Integer showOnHomepage) 
    {
        this.showOnHomepage = showOnHomepage;
    }

    public Integer getShowOnHomepage() 
    {
        return showOnHomepage;
    }

    public void setDaysUntil(Integer daysUntil)
    {
        this.daysUntil = daysUntil;
    }

    public Integer getDaysUntil()
    {
        return daysUntil;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("eventName", getEventName())
            .append("eventDate", getEventDate())
            .append("eventType", getEventType())
            .append("eventDescription", getEventDescription())
            .append("isEnabled", getIsEnabled())
            .append("showOnHomepage", getShowOnHomepage())
            .append("daysUntil", getDaysUntil())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
                .append("userId", getUserId())
            .toString();
    }
}
